<% if session[:user] %>
  <% if user_is_subscriber %>
    <%= link_to_remote "Sluta bevaka annonsen", :update => "subscription", :url => { :action => "toggle_subscription", :id => ad_id } %>
  <% else %>
    <%= link_to_remote "Bevaka annonsen", :update => "subscription", :url => { :action => "toggle_subscription", :id => ad_id } %>
  <% end %>
<% end %>
